import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

import Shopping from "../components/ma/Shopping";
import Shoppings from "../components/ma/Shoppings";
import Strue from "../components/ma/Strue";
import Struetwo from "../components/ma/Struetwo";
import Scenter from "../components/ma/Scenter";
import Index from "../components/ma/Index";
import Thoughts from "../components/ma/Thoughts";
import Food from "../components/ma/Food";
import Milk from "../components/ma/Milk";
import Search from "../components/ma/Search";
import Sresult from "../components/ma/Sresult";
import Msg from '../components/ma/Msg';
import New from '../components/ma/New';
import Must from '../components/ma/Must';
import Super from '../components/ma/Super';
import Detail from '../components/ma/Detail';
//分类
import Class from "../components/czl/Class";
import Facialcare from "../components/czl/Facialcare";
import Category from "../components/czl/Category";
import Duanhuowang from "../components/czl/Duanhuowang";
import Details from "../components/czl/Details";
// 个人中心
// 引入组件
import Register from "../components/users/Register";

import Login from "../components/users/Login";
import Login1 from "../components/users/Login1";
// 公众号
import Gon from "../components/users/Gon";
// 账户提现
import Account from "../components/users/Account";
// 头部
import Tou from "../components/users/Tou";
import FootMark from "../components/users/FootMark";
// 兑换

import Dengyao from "../components/users/Dengyao";
import Dengjilu from "../components/users/Dengjilu";
// 设置
import Reset from "../components/users/Reset";
// 个人中心设置
import Person from "../components/users/Person";
// 收货地址
import Address from "../components/users/Address";
import Accredit from "../components/users/Accredit";
import Feedback from "../components/users/Feedback";
// 反馈
import Feedb1 from "../components/users/FeedBack1";

// 我的
import Coupon from "../components/users/Coupon";
import Assess from "../components/users/Assess";
import Dengzhi from "../components/users/Dengzhi";
// 客服谈话
import Kefu from "../components/users/kefu/Kefu";
// 我的订单
import Order from "../components/users/orderTot/Order";
import WaitDefray from "../components/users/orderTot/WaitDefray";
import WaitOrder from "../components/users/orderTot/WaitOrder";
import WaitReceive from "../components/users/orderTot/WaitReceive";
import TradeFinish from "../components/users/orderTot/TradeFinish";
let router = new VueRouter({
  routes: [
    {
      name:'msg',
      path:'/msg',
      component:Msg
    },
    {
      name:'detail',
      path:'/detail',
      component:Detail
    },
    {
      name:'super',
      path:'/super',
      component:Super
    },
    {
      name:'new',
      path:'/new',
      component:New
    },
    {
      name:'must',
      path:'/must',
      component:Must
    },
    {
      name: "shopping",
      path: "/shopping",
      component: Shopping,
    },
    {
      name: "shoppings",
      path: "/shoppings",
      component: Shoppings,
    },
    {
      name: "strue",
      path: "/strue",
      component: Strue,
    },
    {
      name: "struetwo",
      path: "/struetwo",
      component: Struetwo,
    },
    {
      name: "scenter",
      path: "/scenter",
      component: Scenter,
    },
    {
      name: "index",
      path: "/",
      component: Index,
    },
    {
      name: "thoughts",
      path: "/thoughts",
      component: Thoughts,
    },
    {
      name: "food",
      path: "/food",
      component: Food,
    },
    {
      name: "milk",
      path: "/milk",
      component: Milk,
    },
    {
      name: "search",
      path: "/search",
      component: Search,
    },
    {
      name: "sresult",
      path: "/sresult",
      component: Sresult,
    },
    {
      name: "Login",
      path: "/login",
      component: Login,
    },
    {
      name: "Login1",
      path: "/login1",
      component: Login1,
    },
    {
      name: "Register",
      path: "/register",
      component: Register,
    },
    {
      name: "Gon",
      path: "/gon",
      component: Gon,
    },
    {
      name: "Account",
      path: "/account",
      component: Account,
    },
    {
      name: "Tou",
      path: "/tou",
      component: Tou,
    },
    {
      name: "FootMark",
      path: "/footMark",
      component: FootMark,
    },
    {
      name: "Dengzhi",
      path: "/dengzhi",
      component: Dengzhi,
    },
    {
      name: "Dengyao",
      path: "/dengyao",
      component: Dengyao,
    },
    {
      name: "Dengjilu",
      path: "/dengjilu",
      component: Dengjilu,
    },
    {
      name: "Reset",
      path: "/reset",
      component: Reset,
    },
    {
      name: "Address",
      path: "/address",
      component: Address,
    },
    {
      name: "Accredit",
      path: "/accredit",
      component: Accredit,
    },
    {
      name: "Feedback",
      path: "/feedback",
      component: Feedback,
    },
    {
      name: "Coupon",
      path: "/coupon",
      component: Coupon,
    },
    {
      name: "Assess",
      path: "/assess",
      component: Assess,
    },
    {
      name: "Feedb1",
      path: "/feedb1",
      component: Feedb1,
    },
    {
      name: "Kefu",
      path: "/kefu",
      component: Kefu,
    },
    // 我的订单
    {
      name: "Order",
      path: "/order",
      component: Order,
    },
    {
      name: "WaitDefray",
      path: "/waitDefray",
      component: WaitDefray,
    },
    {
      name: "WaitOrder",
      path: "/waitOrder",
      component: WaitOrder,
    },
    {
      name: "WaitReceive",
      path: "/waitReceive",
      component: WaitReceive,
    },
    {
      name: "TradeFinish",
      path: "/tradeFinish",
      component: TradeFinish,
    },
    // 分类
    {
      name: "Class",
      path: "/class",
      component: Class,
    },
    {
      name: "Facialcare",
      path: "/facialcare",
      component: Facialcare,
    },
    {
      name: "Category",
      path: "/category",
      component: Category,
    },
    {
      name: "Duanhuowang",
      path: "/duanhuowang",
      component: Duanhuowang,
    },
    {
      name: "Details",
      path: "/details",
      component: Details,
    }, {
      name: "Person",
      path: "/person",
      component: Person,
    }
  ],
});

export default router;